/*
 * @Author: CoderLPF
 * @Date: 2020-03-17 10:10:27
 * @LastEditTime: 2020-04-21 13:17:19
 * @LastEditors: CoderLPF
 * @Description: 
 * @FilePath: \fzx-system-fd\babel.config.js
 */
const plugins = [
    [
        'component',
        {
            libraryName: 'element-ui',
            styleLibraryName: 'theme-chalk'
        }
    ], "transform-es2015-arrow-functions"
];
// 生产环境移除console
if (process.env.NODE_ENV === 'production') {
    plugins.push("transform-remove-console");
}
module.exports = {
    presets: [
        '@vue/cli-plugin-babel/preset', ["@babel/env", { "modules": false, "targets": { "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] }, useBuiltIns: 'entry' }]
    ],
    plugins: plugins
};